const db = uniCloud.database();
const dbCmd = db.command;
const $ = db.command.aggregate;
module.exports = async function(options = {}) {
	const res = await db.collection('uni-id-users').where({
		chapters_custom: { $exists: true, $ne: [], $type: "array" }
	}).update({ $pull: { chapters_custom: { $in: ["chapter111"] } } }, { multi: true })
	return {
		code: 0,
		data: res.data,
		msg: '获取成功'
	}
}